<template>
  <el-container class="container">
    <el-header style="text-align: center">
      <span class="ltitle"> MBTI </span>
    </el-header>
    <el-menu
      :default-active="activeIndex2"
      class="el-menu-demo"
      mode="horizontal"
      background-color="#7ac6f5"
      text-color="#fff"
      active-text-color="#ffd04b"
      @select="handleSelect"
    >
      <el-menu-item index="1">mbti测试</el-menu-item>
      <el-menu-item index="2">人格介绍</el-menu-item>
      <el-sub-menu index="3">
        <template #title>信息管理</template>
        <el-menu-item index="2-1">查询学生信息</el-menu-item>
        <el-menu-item index="2-2">添加学生信息</el-menu-item>
        <el-menu-item index="2-3">删除学生信息</el-menu-item>
        <el-menu-item index="2-3">修改学生信息</el-menu-item>
      </el-sub-menu>
    </el-menu>
  </el-container>
</template>

<script>
export default {
  name: "home",
};
</script>

<style scoped>
.container {
  height: 1000px;
}
.el-header {
  background-color: #7ac6f5;
  justify-content: space-between;
  align-items: center;
  padding-left: 0;
}

.ltitle {
  font-size: 30px;
  color: #ffffff;
  font-weight: 1000;
  line-height: 60px;
}
.el-container{
  background-color: #e0f1fc;
}
</style>
